import Vue from 'vue'
import Vuex from 'vuex'
import good from './modules/good'
import category from './modules/category'
import brand from './modules/brand'
import topic from './modules/topic'
import order from './modules/order'
import attribute from './modules/attribute'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userinfo: []
  },
  mutations: {
    saveUserInfo(state, payload) {
      state.userinfo = payload
    }
  },
  actions: {
  },
  modules: {
    good,
    category,
    brand,
    topic,
    order,
    attribute
  }
})
